package com.yao.spider.yiyao.dao;

import com.yao.spider.yiyao.bean.DongFMBean;
import com.yao.spider.yiyao.mapper.DongFMBeanMapper;
import org.apache.ibatis.session.SqlSession;

public class DongFMBeanDaoImpl implements DongFMBeanDao{
    public int insert(DongFMBean personInfo, SqlSession session) {
        DongFMBeanMapper mapper = session.getMapper(DongFMBeanMapper.class);
        mapper.insert(personInfo);
        session.commit();
        return 1;
    }

    public DongFMBean selectByApplyNo(String applyNo, SqlSession session) {
        DongFMBeanMapper mapper = session.getMapper(DongFMBeanMapper.class);
        DongFMBean bean = mapper.selectApplyNo(applyNo);
        return bean;
    }
}
